<div class="row m-n">
    <div class="crumbs-bar">
        <div yb-crumbs></div>
    </div>
    <div tabset type="tab">
        <div tab heading="采购订单" active="activeFlag[0]" ng-click="changeTab(0)">
            <div class="row wrapper-y-sm">
                <div class="operate-bar col-xs-6 font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="addApply()"
                        ng-disabled="!btnPermission.purchaseOrderJckAdd"
                        translate-attr-title="{{!btnPermission.purchaseOrderJckAdd?'无权限执行此操作':''}}"
                        translate>新增</button>
                    <button class="btn btn-operate m-r-sm" ng-click="autoAddApply()"
                        ng-disabled="!btnPermission.purchaseOrderJckAutoAdd"
                        translate-attr-title="{{!btnPermission.purchaseOrderJckAutoAdd?'无权限执行此操作':''}}"
                        translate>自动新增采购订单</button>
                    <button class="btn btn-operate m-r-sm" ng-click="directAddApply()"
                        ng-disabled="!btnPermission.purchaseOrderJckDirect"
                        translate-attr-title="{{!btnPermission.purchaseOrderJckDirect?'无权限执行此操作':''}}"
                        translate>直投新增采购订单</button>
                    <button class="btn btn-operate m-r-sm" ng-click="sapAdd()"
                        ng-disabled="!btnPermission.purchaseOrderJckSapAdd"
                        translate-attr-title="{{!btnPermission.purchaseOrderJckSapAdd?'无权限执行此操作':''}}"
                        translate>同步</button>
                    <!--<button class="btn btn-operate" ng-click="delApply()">删除</button>-->
                </div>
                <div class="search-bar wrapper-none col-xs-6">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="search()" translate
                            translate-attr-title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" translate translate-attr-title="配置表格列"
                            ng-click="switchToolbar('ColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                        <div class="btn btn-default base-color" ng-if="!!btnPermission.purchaseOrderJckExport">
                            <div translate translate-attr-title="导出">
                                <i class="yb-icon ico-export-o"></i>
                            </div>
                            <ul class="more-tool">
                                <li yb-download download-url="exportParam.sectionUrl"
                                    download-param="exportParam.sectionParam" download-key="billIds">
                                    <i class="yb-icon ico-export-o"></i> <span translate>导出</span>
                                </li>
                                <li yb-download download-url="exportParam.allUrl" download-param="condition" download-duration="3" is-ajax="true">
                                    <i class="yb-icon ico-export-o"></i> <span translate>导出全部</span>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <button class="btn-advance pull-right m-l-xs" ng-click="switchToolbar('AdvanceSearch')"
                        translate-attr-title="高级搜索" translate="高级搜索more"></button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" translate translate-attr-placeholder="接收单位"
                            ng-model="condition.supplierOrgName">
                        <span class="input-group-addon cursor-pointer" ng-click="search(1)" translate>搜索</span>
                    </div>
                </div>
            </div>
            <div yb-advance-search show-toolbar="toolbarConfig.showAdvanceSearch" search-data="search(1)"
                reset-data="reset()">
                <div class="advance-search m-t-sm">
                    <div search-purchase-type first-level-model="condition.purchaseType"
                        second-level-model="condition.purchaseTypeChildId"></div>
                    <!--                   <div class="form-group clearfix">
                        <label class="control-label">采购方式：</label>
                        <select ng-model="condition.purchaseType" class="form-control"
                                ng-options="item.code as item.name for item in purchaseLevelList">
                            <option value="">请选择</option>
                        </select>
                    </div>-->
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>审核状态</span>：</label>
                        <select class="form-control" ng-model="condition.billState"
                            ng-options="item.code as (item.name|translate) for item in billStateList">
                            <option value="" translate>请选择</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>是否直投</span>：</label>
                        <select class="form-control" ng-model="condition.isDirectCast">
                            <option value="" translate>请选择</option>
                            <option value="1" translate>是</option>
                            <option value="0" translate>否</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>同步状态</span>：</label>
                        <select class="form-control" ng-model="condition.sapStatus">
                            <option value="" translate>请选择</option>
                            <option value="0" translate>未同步</option>
                            <option value="1" translate>已同步</option>
                            <option value="2" translate>同步失败</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>采购单号</span>：</label>
                        <input type="text" ng-model="condition.billNo" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>采购计划单号</span>：</label>
                        <input type="text" ng-model="condition.buyPlanOrder" class="form-control">
                    </div>
                    <!-- <div class="form-group clearfix">
                        <label class="control-label"><span translate>采购组</span>：</label>
                        <input type="text" ng-model="condition.purchaseGroup" class="form-control">
                    </div> -->
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>来源直投单号</span>：</label>
                        <input type="text" ng-model="condition.directSourceOrder" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>零件号</span>：</label>
                        <input type="text" ng-model="condition.materialsNo" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>采购凭证</span>：</label>
                        <input type="text" ng-model="condition.voucherNo" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>制单人</span>：</label>
                        <input type="text" ng-model="condition.createName" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>调度员</span>：</label>
                        <input type="text" ng-model="condition.dispatcherName" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>供货商代码</span>：</label>
                        <input type="text" ng-model="condition.supplierCode" class="form-control">
                    </div>

                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"><span translate>提交时间</span>：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateStart"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(0)"
                            is-open="datePickerFlag[0]" close-text="关闭"
                            ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')" modal-size="small"
                            readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateEnd"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(1)"
                            is-open="datePickerFlag[1]" close-text="关闭"
                            ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')" modal-size="small"
                            readonly>
                    </div>

                </div>
            </div>
            <div yb-col-config show-toolbar="toolbarConfig.showColConfig" ng-model="tableConfig" col-fixed="true"
                has-check-col="true" set-tb-style="setFixedWidth()"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{isEN? 620:380}}">
                            <thead>
                                <tr>
                                    <th width="40" class="text-center th-check border-l-none">
                                        <div yb-check-box yb-checked="markInfo.allCheckedBill"
                                            yb-click="selectAll(dataList, 'Bill')"></div>
                                    </th>
                                    <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{isEN? 620:380}}" ng-click="toSort(tableConfig.tableCol, $index)"
                                        ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="isEN? 620:380"
                                            fixed-width="{'left':isEN?'620px':'380px'}"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="{'left':isEN?'620px':'380px'}">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-click="toSort(tableConfig.tableCol, $index)"
                                        ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.scrollWidth">
                                        </div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y" ng-show="dataList.length > 0">
                        <table class="table-fixed border-none" width="{{isEN? 620:380}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.cueRow}"
                                    ng-click="selectRow($index)">
                                    <td width="40" class="text-center border-l-none">
                                        <div yb-check-box yb-checked="item.isChecked"
                                            yb-click="selectSingle(item, dataList, 'Bill')"></div>
                                    </td>
                                    <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{isEN? 620:380}}" ng-show="!!itemCol.isShow && !!itemCol.isFixed"
                                        title="{{item[itemCol.dataField]|translate}}">
                                        <span
                                            ng-if="(!itemCol.clickFn && itemCol.type !== 'operate') || !!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] !== '同步失败'">{{item[itemCol.dataField]|translate}}</span>
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                            ng-if="itemCol.type != 'attach' && ((!!itemCol.clickFn && itemCol.type != 'synSap') || (!!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] === '同步失败'))">
                                            {{item[itemCol.dataField]|translate}}
                                        </a>
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                            ng-if="itemCol.type == 'attach' && !!item[itemCol.dataField]">
                                            点击下载
                                        </a>
                                        <div class="font-0" ng-if="itemCol.type === 'operate'">
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="editApply(item)"
                                                ng-disabled="(item.billStatus != '0' && item.billStatus != '3') || item.inboundEnable === 2 || !btnPermission.purchaseOrderEdit"
                                                translate
                                                translate-attr-title="{{!btnPermission.purchaseOrderEdit?'无权限执行此操作':''}}">编辑</button>
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="delApply(item)"
                                                ng-disabled="(item.billStatus != '0' && item.billStatus != '3' && !isZHJCH) || (item.inboundEnable === 2 || !btnPermission.purchaseOrderJckDel)"
                                                translate
                                                translate-attr-title="{{!btnPermission.purchaseOrderJckDel?'无权限执行此操作':''}}">删除</button>
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="cancelApply(item)"
                                                ng-disabled="item.billStatus != '1' || !btnPermission.purchaseOrderJckCancel"
                                                translate
                                                translate-attr-title="{{!btnPermission.purchaseOrderJckCancel?'无权限执行此操作':''}}">撤销</button>
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="sapPost(item)"
                                                ng-disabled="item.billStatus !== '2' || item.sapStatus === 1 || !btnPermission.purchaseOrderJckCreate"
                                                translate
                                                translate-attr-title="{{!btnPermission.purchaseOrderJckCreate?'无权限执行此操作':''}}">创建采购凭证</button>
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="importAttach(item)"
                                                ng-disabled="(item.billStatus != '0' && item.billStatus != '3') || !btnPermission.purchaseOrderJckUpload"
                                                translate
                                                translate-attr-title="{{!btnPermission.purchaseOrderJckUpload?'无权限执行此操作':''}}">上传附件</button>
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="createBarcode(item)"
                                                ng-disabled="item.billStatus !== '2' ||  item.printState === 2 || !btnPermission.purchaseOrderJckBarcode"
                                                translate
                                                translate-attr-title="{{!btnPermission.purchaseOrderJckBarcode?'无权限执行此操作':''}}">条码生成</button>
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="go2logistics(item)"
                                                ng-disabled="!btnPermission.purchaseOrderJckViewLogistics" translate
                                                translate-attr-title="{{!btnPermission.purchaseOrderJckViewLogistics?'无权限执行此操作':''}}">查物流</button>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dataList.length > 0" ng-style="{'left':isEN?'620px':'380px'}">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.cueRow}"
                                    ng-click="selectRow($index)">
                                    <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                        title="{{item[itemCol.dataField]|translate}}">
                                        <span
                                            ng-if="(!itemCol.clickFn && itemCol.type !== 'operate') || !!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] !== '同步失败'">{{item[itemCol.dataField]|translate}}</span>
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                            ng-if="itemCol.type != 'attach' && ((!!itemCol.clickFn && itemCol.type != 'synSap') || (!!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] === '同步失败'))">
                                            {{item[itemCol.dataField]|translate}}
                                        </a>
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                            ng-if="itemCol.type == 'attach' && !!item[itemCol.dataField]">
                                            点击下载
                                        </a>
                                        <div class="font-0" ng-if="itemCol.type === 'operate'">
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="editApply(item)"
                                                ng-disabled="(item.billStatus != '0' && item.billStatus != '3') || item.inboundEnable === 2 ||!btnPermission.purchaseOrderEdit"
                                                title="{{!btnPermission.purchaseOrderEdit?'无权限执行此操作':''}}">编辑</button>
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="delApply(item)"
                                                ng-disabled="item.inboundEnable === 2 || !btnPermission.purchaseOrderDel"
                                                title="{{!btnPermission.purchaseOrderDel?'无权限执行此操作':''}}">删除</button>
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="cancelApply(item)"
                                                ng-disabled="item.billStatus != '1' || !btnPermission.purchaseOrderCancel"
                                                title="{{!btnPermission.purchaseOrderCancel?'无权限执行此操作':''}}">撤销</button>
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="sapPost(item)"
                                                ng-disabled="item.billStatus !== '2' || item.sapStatus === 1 || !btnPermission.purchaseOrderSAP"
                                                title="{{!btnPermission.purchaseOrderSAP?'无权限执行此操作':''}}">创建采购凭证</button>
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="importAttach(item)"
                                                ng-disabled="(item.billStatus != '0' && item.billStatus != '3') || !btnPermission.purchaseOrderImport"
                                                title="{{!btnPermission.purchaseOrderImport?'无权限执行此操作':''}}">上传附件</button>
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="createBarcode(item)"
                                                ng-disabled="item.billStatus !== '2' ||  item.printState === 2 || !btnPermission.purchaseOrderCreateBarcode"
                                                title="{{!btnPermission.purchaseOrderCreateBarcode?'无权限执行此操作':''}}">条码生成</button>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dataList.length === 0" translate>暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-check-box class="m-t-xs m-r-sm" yb-checked="markInfo.allCheckedBill" yb-check-name="全选"
                    yb-click="selectAll(dataList, 'Bill')"></div>
                <div yb-page-info ng-model="pageInfo" yb-refresh="search()"></div>
            </div>
        </div>
        <div tab heading="{{tabFlag.name}}" active="activeFlag[2]" ng-if="activeFlag[2]">
            <form name="orderForm" class="m-t-sm form-horizontal form-up-tb border-b clearfix" novalidate>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-150"><span translate
                            style="font-weight: 600;">订单信息</span>：</label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-150"><span translate
                            style="font-weight: 600;">收货信息</span>：</label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-150"><span translate
                            style="font-weight: 600;">账单信息</span>：</label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <!--  ng-if="!!orderObj.billNo" -->
                    <label class="col-xs-4 control-label max-w-120"><span translate>采购单号</span>：</label>
                    <div class="col-xs-8 control-label p-l-n text-left spill-dots" title="{{orderObj.billNo}}">
                        {{orderObj.billNo}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120"><i>*</i><span translate>收货人</span>：</label>
                    <div class="col-xs-6 wrapper-none">
                        <input type="text" name="receiverName" class="form-control" ng-model="orderObj.receiverName"
                            required yb-focus maxlength="11" ng-disabled="onlySelect">

                        <div class="msg-block"
                            ng-show="orderForm.receiverName.$dirty || (orderForm.receiverName.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.receiverName.$error.required && !orderForm.receiverName.focused"
                                translate>
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-2 p-l-sm p-r-none control-btn">
                        <button class="btn btn-default form-control" type="button"
                            ng-click="searchAddress(orderObj.receiverName)"><span translate>搜索</span></button>
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120"><span translate>订单小计</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        <!-- {{orderObj.purchaseOrgName}} -->23000
                    </label>
                </div>
                <!-- todo 需要获取当前登录企业与个人信息-->
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120"><span translate>申请单位</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.purchaseOrgName}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120"><i>*</i><span translate>收货地址</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receiverAddress" class="form-control"
                            ng-model="orderObj.receiverAddress" required yb-focus maxlength="200"
                            ng-disabled="onlySelect">

                        <div class="msg-block"
                            ng-show="orderForm.receiverAddress.$dirty || (orderForm.receiverAddress.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.receiverAddress.$error.required && !orderForm.receiverAddress.focused"
                                translate>
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120"><span translate>运费</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        <!-- {{orderObj.purchaseOrgName}} -->354
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm" ng-if="tabFlag.type === 2">
                    <label class="col-xs-4 control-label max-w-120"><span translate>接收单位</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.supplierOrgName || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm" ng-if="tabFlag.type === 1">
                    <label class="col-xs-4 control-label max-w-120"><i>*</i><span translate>接收单位</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="orderObj.supplierOrgName" select-obj="selectSupplier()"
                            clear-form="clearSupplier()" tips-name="接收单位" form-require="true"></div>

                        <div class="msg-block" ng-if="!orderObj.supplierOrgName && submitted">
                            <div class="error-msg" translate>
                                <div class="msg-triangle"></div>
                                请选择接收单位
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120"><i>*</i><span translate>手机号</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receiverTel" class="form-control" ng-model="orderObj.receiverTel"
                            required yb-mobile yb-focus maxlength="11" ng-disabled="onlySelect">

                        <div class="msg-block"
                            ng-show="orderForm.receiverTel.$dirty || (orderForm.receiverTel.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.receiverTel.$error.required && !orderForm.receiverTel.focused"
                                translate>
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                            <div class="error-msg"
                                ng-show="orderForm.receiverTel.$error.mobile && !orderForm.receiverTel.focused"
                                translate>
                                <div class="msg-triangle"></div>
                                手机号格式错误
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120"><span translate>税</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        <!-- {{orderObj.purchaseOrgName}} -->300
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120"><span translate>申请时间</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.createDate|YbDate:"yyyy-MM-dd HH:mm:ss"}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120"><i>*</i><span translate>发布方式</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div select-send-type first-level-model="orderObj.shippingMethodId"
                            second-level-model="orderObj.sendTypeChildId" parent-type-name="orderObj.shippingMethod"
                            is-default="!orderObj.billNo" child-type-name="orderObj.sendTypeChildName"
                            supplier-org-id="orderObj.supplierOrgId" is-sap="isSap" is-dealer="!isZHJCH">
                        </div>
                        <div class="msg-block"
                            ng-if="orderForm.sendType.$dirty || (orderForm.sendType.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.sendType.$error.required && !orderForm.sendType.focused" translate>
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120"><span translate>总计</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        <!-- {{orderObj.purchaseOrgName}} -->23654
                    </label>
                </div>
            </form>
            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="selMateriel($event)"><span
                            translate>选择零件</span></button>
                    <button class="btn btn-operate m-r-sm" ng-click="importMateriel()"><span
                            translate>导入零件</span></button>
                    <button class="btn btn-operate m-r-sm" ng-click="batchDelMateriel()"><span
                            translate>批量删除</span></button>
                </div>
            </div>
            <div materiel-selector show-toolbar="toolbarConfig.showMateriel" sold-org-id="orderObj.soldOrgId"
                is-purchase="true" supplier-id="orderObj.supplierOrgId"
                selected-list="orderObj.materialsList" replace-check="true"></div>
            <div ng-style="{'top':orderObj.isDirectCast===1?(isZHJCH?'350px':'305px'):(isZHJCH && !!orderObj.billNo?'350px':'305px')}"
                class="main-area d-b-60">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{materielTableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="th-check text-center">
                                        <div yb-check-box yb-checked="markInfo.allCheckedMaterial"
                                            yb-click="selectAll(orderObj.materialsList, 'Material')"></div>
                                    </th>
                                    <th width="60" class="text-center">
                                        <span translate>操作</span>
                                    </th>
                                    <th ng-repeat="itemCol in materielTableConfig.tableCol track by $index"
                                        ng-if="itemCol.type !== 'rowNo'&&!itemCol.hidden" width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="materielTableConfig.targetWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.materialsList.length > 0">
                        <table class="table-fixed border-none" width="{{materielTableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in orderObj.materialsList track by $index">
                                    <td width="40" class="text-center">
                                        <div yb-check-box yb-checked="item.isChecked"
                                            yb-click="selectSingle(item, orderObj.materialsList, 'Material')"></div>
                                    </td>
                                    <td width="60">
                                        <button type="button" class="btn btn-operate"
                                            ng-click="delMateriel(item, $index)"><span translate>删除</span></button>
                                    </td>
                                    <td ng-repeat="itemCol in materielTableConfig.tableCol track by $index"
                                        ng-if="itemCol.type !== 'rowNo'&&!itemCol.hidden" width="{{itemCol.width}}"
                                        title="{{item[itemCol.dataField]}}">
                                        <div class="spill-dots" ng-if="!itemCol.needInput && !itemCol.input"
                                            ng-class="{'danger-color': itemCol.needWarn}">
                                            {{item[itemCol.dataField]}}
                                        </div>
                                        <div ng-if="!!itemCol.input && itemCol.inputType === 'price' "
                                            class="td-edit pos-r">
                                            {{item[itemCol.dataField]}}

                                        </div>
                                        <div yb-form-clear class="td-edit" ng-model="item[itemCol.dataField]"
                                            select-obj="chosePriceScheme(item, $parent.$parent.$index)"
                                            clear-form="clearPriceScheme(item)" tips-name="价格方案"
                                            ng-if="!!itemCol.input && itemCol.inputType === 'func'"
                                            title="{{item[itemCol.dataField]}}"></div>

                                        <div ng-if="itemCol.needInput && itemCol.inputType === 'qty'"
                                            class="td-edit pos-r">
                                            <input type="text" class="form-control" ng-model="item[itemCol.dataField]"
                                                ng-change="countTotal(item)" yb-number-input max="99999.999"
                                                maxlength="9" disable-decimal="false" decimal-places="3"
                                                ng-class="{'error': item.qtyErr || (orderObj.isDirectCast === 1&&item.qtyFormatErr)}">
                                            <div class="pos-a tool-tips" ng-if="!!item.qtyErr">
                                                <i class="triangle"></i>
                                                <div class="msg" translate>申请数量不能为空和0</div>
                                            </div>
                                            <div class="pos-a tool-tips" ng-if="!!item.qtyFormatErr">
                                                <i class="triangle"></i>
                                                <div class="msg" translate>申请数量必须为{{item.minimumBuy}}的倍数</div>
                                            </div>
                                        </div>

                                        <div ng-if="itemCol.needInput && itemCol.inputType === 'netPrice'&&!itemCol.hidden"
                                            class="td-edit pos-r">
                                            <input type="text" class="form-control" ng-model="item[itemCol.dataField]"
                                                ng-change="countNetPriceTotal(item)" yb-number-input max="99999.999"
                                                maxlength="9" disable-decimal="false" decimal-places="3">
                                        </div>

                                        <div ng-if="itemCol.input && itemCol.inputType === 'time'" class="td-edit pos-r"
                                            title="{{item[itemCol.dataField]}}">
                                            <input type="text" class="form-control date-picker cursor-pointer"
                                                ng-model="item[itemCol.dataField]" datepicker-popup="{{'yyyy-MM-dd'}}"
                                                ng-click="switchListDatePicker(item)" at-right="true"
                                                is-open="item.showDatePicker" close-text="关闭"
                                                ng-class="{'error': item.dateErr && !item[itemCol.dataField]}" readonly>
                                            <div class="pos-a tool-tips"
                                                ng-if="!!item.dateErr && !item[itemCol.dataField]">
                                                <i class="triangle"></i>
                                                <div class="msg" translate>交货日期不能为空</div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.materialsList.length === 0" translate>
                        暂时没有数据
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="saveData('save', orderForm.$valid)"><span
                        translate>保存</span></button>
                <button type="button" class="btn btn-primary m-r-sm"
                    ng-click="saveData('submit', orderForm.$valid)"><span translate>提交</span></button>
                <button type="button" class="btn btn-default" ng-click="cancel()"><span translate>取消</span></button>
            </div>
        </div>
        <div tab heading="调整" active="activeFlag[12]" ng-if="activeFlag[12]">
            <form name="orderForm" class="m-t-sm form-horizontal form-up-tb border-b clearfix" novalidate>
                <div class="form-group col-xs-4 m-b-sm" ng-if="!!orderObj.billNo">
                    <label class="col-xs-4 control-label max-w-120">采购单号：</label>
                    <div class="col-xs-8 control-label p-l-n text-left spill-dots" title="{{orderObj.billNo}}">
                        {{orderObj.billNo}}
                    </div>
                </div>
                <!-- todo 需要获取当前登录企业与个人信息-->
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120">申请单位：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.purchaseOrgName}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120">申请时间：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.createDate|YbDate:"yyyy-MM-dd HH:mm:ss"}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm"
                    ng-if="isZHJCH && (tabFlag.type === 1 || tabFlag.type === 2)">
                    <label class="col-xs-4 control-label max-w-120">订单类型：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.purchaseOrdTypeDesc || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm" ng-if="tabFlag.type === 2 || tabFlag.type === 1">
                    <label class="col-xs-4 control-label max-w-120">接收单位：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.supplierOrgName || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm"
                    ng-if="(tabFlag.type === 2 || tabFlag.type === 1) && isZHJCH">
                    <label class="col-xs-4 control-label max-w-120">出票方：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.drawerOrgName || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm" ng-if="isZHJCH">
                    <label class="col-xs-4 control-label max-w-120">采购组：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.purchaseGroup || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120">调度员：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.dispatcherName || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120">采购方式：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.purchaseTypeChildId ? orderObj.typeDesc + "-" + orderObj.purchaseTypeChildName : orderObj.typeDesc}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120">发运方式：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.sendTypeChildId ? orderObj.shippingMethod + "-" + orderObj.sendTypeChildName : orderObj.shippingMethod}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120"><i>*</i>收货人：</label>
                    <div class="col-xs-6 wrapper-none">
                        <input type="text" name="receiverName" class="form-control" ng-model="orderObj.receiverName"
                            required yb-focus maxlength="11" ng-disabled="onlySelect">

                        <div class="msg-block"
                            ng-show="orderForm.receiverName.$dirty || (orderForm.receiverName.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.receiverName.$error.required && !orderForm.receiverName.focused">
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-2 p-l-sm p-r-none control-btn">
                        <button class="btn btn-default form-control" type="button"
                            ng-click="searchAddress(orderObj.receiverName)">搜索</button>
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120"><i>*</i>手机号：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receiverTel" class="form-control" ng-model="orderObj.receiverTel"
                            required yb-mobile yb-focus maxlength="11" ng-disabled="onlySelect">

                        <div class="msg-block"
                            ng-show="orderForm.receiverTel.$dirty || (orderForm.receiverTel.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.receiverTel.$error.required && !orderForm.receiverTel.focused">
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                            <div class="error-msg"
                                ng-show="orderForm.receiverTel.$error.mobile && !orderForm.receiverTel.focused">
                                <div class="msg-triangle"></div>
                                手机号格式错误
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120"><i>*</i>收货地址：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receiverAddress" class="form-control"
                            ng-model="orderObj.receiverAddress" required yb-focus maxlength="200"
                            ng-disabled="onlySelect">

                        <div class="msg-block"
                            ng-show="orderForm.receiverAddress.$dirty || (orderForm.receiverAddress.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.receiverAddress.$error.required && !orderForm.receiverAddress.focused">
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120">传真：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receiverFax" maxlength="20" class="form-control"
                            ng-model="orderObj.receiverFax">
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120">国家和地区：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.country || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120">机型：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.model  || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120">备注：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="remark" class="form-control" ng-model="orderObj.remark"
                            maxlength="200">
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120">库区编码：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.sapInArea  || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120">订单金额：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.totalValue || 0}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120">是否直投订单：</label>
                    <label class="col-xs-8 control-label p-l-n text-left clearfix">
                        <input type="radio" class="m-r-sm pull-left" yb-radio
                            yb-disabled="!!orderObj.billNo || orderObj.materialsList.length > 0"
                            ng-model="orderObj.isDirectCast" value="1" yb-click="clearSold()" yb-radio-name="是">
                        <input type="radio" class="m-r-sm pull-left" yb-radio
                            yb-disabled="!!orderObj.billNo || orderObj.materialsList.length > 0"
                            ng-model="orderObj.isDirectCast" value="0" yb-click="clearSold()" yb-radio-name="否">
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120">是否整改：</label>
                    <label class="col-xs-8 control-label p-l-n text-left clearfix">
                        <input type="radio" class="m-r-sm pull-left" yb-radio ng-model="orderObj.isImprove" value="1"
                            yb-radio-name="是">
                        <input type="radio" class="m-r-sm pull-left" yb-radio ng-model="orderObj.isImprove" value="0"
                            yb-radio-name="否">
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm" ng-if="orderObj.isDirectCast === 1">
                    <label class="col-xs-4 control-label max-w-120">直投达标金额：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.directLimit || 0}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm" ng-if="orderObj.isDirectCast === 1">
                    <label class="col-xs-4 control-label max-w-120"><i>*</i>供货商：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="orderObj.soldOrgName" select-obj="selectSold()"
                            clear-form="clearSold()" tips-name="供货商" form-require="true"></div>

                        <div class="msg-block" ng-if="!orderObj.soldOrgName && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                请选择供货商
                            </div>
                        </div>
                    </div>
                </div>
            </form>
            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="selMateriel($event)">选择零件</button>
                    <!--<button class="btn btn-operate m-r-sm" ng-click="importMateriel()">导入零件</button>-->
                    <button class="btn btn-operate m-r-sm" ng-click="batchDelMateriel()">批量删除</button>
                </div>
            </div>
            <div materiel-selector show-toolbar="toolbarConfig.showMateriel" sold-org-id="orderObj.soldOrgId"
                is-purchase="true" supplier-id="orderObj.supplierOrgId"
                selected-list="orderObj.materialsList" replace-check="true"></div>
            <div ng-style="{'top':orderObj.isDirectCast===1?'305px':(isZHJCH&&!!orderObj.billNo?'305px':'260px')}"
                class="main-area d-b-60">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{materielTableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="th-check text-center">
                                        <div yb-check-box yb-checked="markInfo.allCheckedMaterial"
                                            yb-click="selectAll(orderObj.materialsList, 'Material')"></div>
                                    </th>
                                    <th width="60" class="text-center">
                                        操作
                                    </th>
                                    <th ng-repeat="itemCol in materielTableConfig.tableCol track by $index"
                                        ng-if="itemCol.type !== 'rowNo'&&!itemCol.hidden" width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="materielTableConfig.targetWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.materialsList.length > 0">
                        <table class="table-fixed border-none" width="{{materielTableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in orderObj.materialsList track by $index">
                                    <td width="40" class="text-center">
                                        <div yb-check-box yb-checked="item.isChecked"
                                            yb-click="selectSingle(item, orderObj.materialsList, 'Material')"></div>
                                    </td>
                                    <td width="60">
                                        <button type="button" ng-disabled="(!!item.sendQty  && item.sendQty > 0)"
                                            class="btn btn-operate" ng-click="delMateriel(item, $index)">删除</button>
                                    </td>
                                    <td ng-repeat="itemCol in materielTableConfig.tableCol track by $index"
                                        ng-if="itemCol.type !== 'rowNo'&&!itemCol.hidden" width="{{itemCol.width}}"
                                        title="{{item[itemCol.dataField]}}">
                                        <div class="spill-dots" ng-if="!itemCol.needInput && !itemCol.input"
                                            ng-class="{'danger-color': itemCol.needWarn}">
                                            {{item[itemCol.dataField]}}
                                        </div>
                                        <div ng-if="!!itemCol.input && itemCol.inputType === 'price' "
                                            class="td-edit pos-r">
                                            {{item[itemCol.dataField]}}

                                        </div>
                                        <div yb-form-clear class="td-edit" ng-model="item[itemCol.dataField]"
                                            select-obj="chosePriceScheme(item, $parent.$parent.$index)"
                                            clear-form="clearPriceScheme(item)" tips-name="价格方案"
                                            ng-if="!!itemCol.input && itemCol.inputType === 'func'"
                                            title="{{item[itemCol.dataField]}}"></div>

                                        <div ng-if="itemCol.needInput && itemCol.inputType === 'qty'"
                                            class="td-edit pos-r">
                                            <input type="text" class="form-control" ng-model="item[itemCol.dataField]"
                                                ng-change="countTotal(item)" yb-number-input max="99999.999"
                                                maxlength="9" disable-decimal="false" decimal-places="3"
                                                ng-class="{'error': item.qtyErr || (orderObj.isDirectCast === 1&&item.qtyFormatErr)}">
                                            <div class="pos-a tool-tips" ng-if="!!item.qtyErr">
                                                <i class="triangle"></i>
                                                <div class="msg">申请数量不能为空和0</div>
                                            </div>
                                            <div class="pos-a tool-tips"
                                                ng-if="!!item.qtyFormatErr&&orderObj.isDirectCast === 1">
                                                <i class="triangle"></i>
                                                <div class="msg">申请数量必须为{{item.minimumBuy}}的倍数</div>
                                            </div>
                                        </div>

                                        <div ng-if="itemCol.needInput && itemCol.inputType === 'netPrice'&&!itemCol.hidden"
                                            class="td-edit pos-r">
                                            <input type="text" class="form-control" ng-model="item[itemCol.dataField]"
                                                ng-change="countNetPriceTotal(item)" yb-number-input max="99999.999"
                                                maxlength="9" disable-decimal="false" decimal-places="3">
                                        </div>

                                        <div ng-if="itemCol.input && itemCol.inputType === 'time'" class="td-edit pos-r"
                                            title="{{item[itemCol.dataField]}}">
                                            <input type="text" class="form-control date-picker cursor-pointer"
                                                ng-model="item[itemCol.dataField]" datepicker-popup="{{'yyyy-MM-dd'}}"
                                                ng-click="switchListDatePicker(item)" at-right="true"
                                                is-open="item.showDatePicker" close-text="关闭"
                                                ng-class="{'error': item.dateErr && !item[itemCol.dataField]}" readonly>
                                            <div class="pos-a tool-tips"
                                                ng-if="!!item.dateErr && !item[itemCol.dataField]">
                                                <i class="triangle"></i>
                                                <div class="msg">交货日期不能为空</div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.materialsList.length === 0">暂时没有数据
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="adjustData(orderForm.$valid)">调整</button>
                <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>
            </div>
        </div>
        <div tab heading="详情" active="activeFlag[3]" ng-if="activeFlag[3]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-150"><span translate
                            style="font-weight: 600;">订单信息</span>：</label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-150"><span translate
                            style="font-weight: 600;">收货信息</span>：</label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-150"><span translate
                            style="font-weight: 600;">账单信息</span>：</label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>采购单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.billNo || '-'}}">
                        {{orderObj.billNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>收货人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.receiverName || '-'}}">
                        {{orderObj.receiverName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>订单小计</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.receiverName || '-'}}">
                        23000
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>申请单位</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.purchaseOrgName || '-'}}">
                        {{orderObj.purchaseOrgName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>收货地址</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.receiverAddress || '-'}}">
                        {{orderObj.receiverAddress || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>运费</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.receiverTel || '-'}}">
                        354
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>接收单位</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.supplierOrgName || '-'}}">
                        {{orderObj.supplierOrgName||'-'}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>联系方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.receiverTel || '-'}}">
                        {{orderObj.receiverTel || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>税</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.receiverTel || '-'}}">
                        300
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>申请时间</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{(orderObj.createDate|YbDate) || '-'}}">
                        {{(orderObj.createDate|YbDate:"yyyy-MM-dd HH:mm:ss") || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>发布方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{orderObj.sendTypeChildId ? orderObj.shippingMethod + '-' + orderObj.sendTypeChildName : orderObj.shippingMethod}}">
                        {{orderObj.sendTypeChildId ? orderObj.shippingMethod + "-" + orderObj.sendTypeChildName : orderObj.shippingMethod}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>总计</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.receiverTel || '-'}}">
                        23654
                    </div>
                </div>
            </div>
            <div class="panel-bar clearfix">
                <div class="pull-left" translate>
                    <i></i>零件信息
                </div>
            </div>
            <div class="main-area d-b-60" ng-style="{'top':(orderObj.isDirectCast === 1)?'285px':'260px'}">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{materielTableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in materielTableConfig.tableCol track by $index"
                                        ng-if="!itemCol.hidden" width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="editMaterielConfig.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.materialsList.length > 0">
                        <table class="table-fixed border-none" width="{{materielTableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in orderObj.materialsList track by $index">
                                    <td class="spill-dots"
                                        ng-repeat="itemCol in materielTableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}"
                                        ng-if="!itemCol.hidden">
                                        {{item[itemCol.dataField]}}
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.materialsList.length === 0">暂时没有数据
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-default" ng-click="cancel()" translate>返回</button>
            </div>
        </div>
        <div tab heading="选择采购计划" active="activeFlag[4]" ng-if="activeFlag[4] || activeFlag[5]">
            <div class="row wrapper-y-sm">
                <div class="operate-bar col-xs-4 font-0">
                </div>
                <div class="search-bar wrapper-none col-xs-8">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="selectPlan.search()"
                            translate translate-attr-title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" translate translate-attr-title="配置表格列"
                            ng-click="selectPlan.switchToolbar('ColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                    </div>
                    <button class="btn-advance pull-right m-l-xs" ng-click="selectPlan.switchToolbar('AdvanceSearch')"
                        translate>高级搜索</button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" translate translate-attr-placeholder="采购计划单号"
                            ng-model="selectPlan.condition.planOrder">
                        <span class="input-group-addon cursor-pointer" ng-click="selectPlan.search(1)"
                            translate>搜索</span>
                    </div>
                </div>
            </div>
            <div yb-advance-search show-toolbar="selectPlan.toolbarConfig.showAdvanceSearch"
                search-data="selectPlan.search(1)" reset-data="selectPlan.reset()">
                <div class="advance-search m-t-sm">
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>采购单号</span>：</label>
                        <input type="text" class="form-control" ng-model="selectPlan.condition.planOrder">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>申请人</span>：</label>
                        <input type="text" class="form-control" ng-model="selectPlan.condition.createName">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>采购级别</span>：</label>
                        <select ng-model="selectPlan.condition.typeId" class="form-control"
                            ng-options="item.code as item.name for item in purchaseLevelList">
                            <option value="" translate>请选择</option>
                        </select>
                    </div>
                </div>
            </div>
            <div yb-col-config show-toolbar="selectPlan.toolbarConfig.showColConfig" ng-model="selectPlan.tableConfig"
                col-fixed="true" set-tb-style="selectPlan.setFixedWidth()"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{selectPlan.tableConfig.fixedWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in selectPlan.tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}"
                                        ng-click="selectPlan.toSort(selectPlan.tableConfig.tableCol, $index)"
                                        ng-show="!!itemCol.isShow && !!itemCol.isFixed && itemCol.type !== 'operate'">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="selectPlan.tableConfig.fixedWidth"
                                            fixed-width="selectPlan.tbStyle.sellFixedWidth"></div>
                                    </th>
                                    <th width="120" class="border-r-none">
                                        <span translate>操作</span>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="selectPlan.tbStyle.sellFixedWidth">
                        <table class="table-fixed border-none" width="{{selectPlan.tableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in selectPlan.tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}"
                                        ng-click="selectPlan.toSort(selectPlan.tableConfig.tableCol, $index)"
                                        ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="selectPlan.tableConfig.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y" ng-show="selectPlan.dataList.length > 0">
                        <table class="table-fixed border-none" width="{{selectPlan.tableConfig.fixedWidth}}">
                            <tbody>
                                <tr ng-repeat="item in selectPlan.dataList track by $index"
                                    ng-click="selectPlan.selectRow($index)"
                                    ng-class="{'row-selected': $index === markInfo.cueRow}">
                                    <td class="border-l-none spill-dots"
                                        ng-repeat="itemCol in selectPlan.tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}"
                                        ng-show="!!itemCol.isShow && !!itemCol.isFixed && itemCol.type !== 'operate'"
                                        title="{{item[itemCol.dataField]}}">
                                        {{item[itemCol.dataField]}}
                                    </td>
                                    <td width="200" class="border-l-none font-0">
                                        <button class="btn btn-operate" ng-click="makeIntention(item)"
                                            translate>新增采购订单</button>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="selectPlan.dataList.length > 0"
                        ng-style="selectPlan.tbStyle.sellFixedWidth">
                        <table class="table-fixed border-none" width="{{selectPlan.tableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in selectPlan.dataList track by $index"
                                    ng-click="selectPlan.selectRow($index)"
                                    ng-class="{'row-selected': $index === markInfo.cueRow}">
                                    <td class="spill-dots"
                                        ng-repeat="itemCol in selectPlan.tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        {{item[itemCol.dataField]}}
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="selectPlan.dataList.length === 0" translate>
                        暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-page-info ng-model="selectPlan.pageInfo" yb-refresh="selectPlan.search()"></div>
            </div>
        </div>
        <div tab heading="自动新增采购订单" active="activeFlag[5]" ng-if="activeFlag[5]">
            <form name="orderForm" class="m-t-sm form-horizontal form-up-tb border-b clearfix" novalidate>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120"><span translate>申请单位</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.purchaseOrgName}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120"><span translate>申请时间</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.createDate|YbDate:"yyyy-MM-dd HH:mm:ss"}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm" ng-if="isZHJCH">
                    <label class="col-xs-4 control-label max-w-120"><i>*</i><span translate>订单类型</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div dictionary-selector ng-model="orderObj.purchaseOrdTypeDesc" sel-key="CGDDLX"
                            sel-code="orderObj.purchaseOrdType">
                            <input type="text" name="purchaseOrdType" class="form-control light-bg"
                                ng-model="orderObj.purchaseOrdTypeDesc" translate-attr-placeholder="请选择" required
                                readonly yb-focus>
                        </div>
                        <div class="msg-block"
                            ng-show="orderForm.purchaseOrdType.$dirty || (orderForm.purchaseOrdType.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.purchaseOrdType.$error.required && !orderForm.purchaseOrdType.focused"
                                translate>
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm" ng-if="isZHJCH">
                    <label class="col-xs-4 control-label max-w-120"><i>*</i><span translate>采购组</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="orderObj.purchaseGroup" select-obj="selectPurchaseGroup()"
                            clear-form="clearPurchaseGroup()" tips-name="采购组" form-require="true"></div>

                        <div class="msg-block" ng-if="!orderObj.purchaseGroup && submitted">
                            <div class="error-msg" translate>
                                <div class="msg-triangle"></div>
                                请选择采购组
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm" ng-if="!orderObj.isPlatCompany">
                    <label class="col-xs-4 control-label max-w-120"><span translate>调度员</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="dispatcherName" class="form-control light-bg"
                            ng-model="orderObj.dispatcherName" ng-click="selectDispatchPerson()" yb-focus readonly
                            placeholder="请选择" translate>
                    </div>
                </div>

                <div class="form-group col-xs-4 m-b-sm" ng-if="orderObj.isPlatCompany">
                    <label class="col-xs-4 control-label max-w-120"><i>*</i><span translate>调度员</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="dispatcherName" class="form-control light-bg"
                            ng-model="orderObj.dispatcherName" ng-click="selectDispatchPerson()" required yb-focus
                            placeholder="请选择" translate>

                        <div class="msg-block"
                            ng-if="orderForm.dispatcherName.$dirty || (orderForm.dispatcherName.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.dispatcherName.$error.required && !orderForm.dispatcherName.focused"
                                translate>
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120"><i>*</i><span translate>采购方式</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div select-purchase-type first-level-model="orderObj.purchaseType"
                            second-level-model="orderObj.purchaseTypeChildId"
                            parent-type-name="orderObj.purchaseTypeName"
                            child-type-name="orderObj.purchaseTypeChildName"></div>
                        <div class="msg-block"
                            ng-if="orderForm.purchaseType.$dirty || (orderForm.purchaseType.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.purchaseType.$error.required && !orderForm.purchaseType.focused"
                                translate>
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                        </div>
                        <div class="msg-block" style="left: 100px;"
                            ng-if="orderForm.secondPurchaseType.$dirty || (orderForm.secondPurchaseType.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.secondPurchaseType.$error.required && !orderForm.secondPurchaseType.focused">
                                <div class="msg-triangle"></div>
                                <span translate>必填项，请填写</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120"><i>*</i><span translate>发布方式</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div select-send-type first-level-model="orderObj.shippingMethodId"
                            second-level-model="orderObj.sendTypeChildId" parent-type-name="orderObj.shippingMethod"
                            child-type-name="orderObj.sendTypeChildName"></div>
                        <div class="msg-block"
                            ng-if="orderForm.sendType.$dirty || (orderForm.sendType.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.sendType.$error.required && !orderForm.sendType.focused" translate>
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                        </div>
                    </div>
                </div>

                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120"><i>*</i><span translate>收货人</span>：</label>
                    <div class="col-xs-6 wrapper-none">
                        <input type="text" name="receiverName" class="form-control" ng-model="orderObj.receiverName"
                            required yb-focus maxlength="11">

                        <div class="msg-block"
                            ng-show="orderForm.receiverName.$dirty || (orderForm.receiverName.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.receiverName.$error.required && !orderForm.receiverName.focused"
                                translate>
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-2 p-l-sm p-r-none control-btn">
                        <button class="btn btn-default form-control" type="button"
                            ng-click="searchAddress(orderObj.receiverName)" translate>搜索</button>
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120"><i>*</i><span translate>手机号</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receiverTel" class="form-control" ng-model="orderObj.receiverTel"
                            required yb-mobile yb-focus maxlength="11">

                        <div class="msg-block"
                            ng-show="orderForm.receiverTel.$dirty || (orderForm.receiverTel.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.receiverTel.$error.required && !orderForm.receiverTel.focused"
                                translate>
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                            <div class="error-msg"
                                ng-show="orderForm.receiverTel.$error.mobile && !orderForm.receiverTel.focused"
                                translate>
                                <div class="msg-triangle"></div>
                                手机号格式错误
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120"><i>*</i><span translate>收货地址</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receiverAddress" class="form-control"
                            ng-model="orderObj.receiverAddress" required yb-focus maxlength="200">

                        <div class="msg-block"
                            ng-show="orderForm.receiverAddress.$dirty || (orderForm.receiverAddress.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.receiverAddress.$error.required && !orderForm.receiverAddress.focused"
                                translate>
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120"><span translate>传真</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receiverFax" maxlength="20" class="form-control"
                            ng-model="orderObj.receiverFax">
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120"><span translate>库区编码</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="sapInArea" class="form-control" ng-model="orderObj.sapInArea"
                            maxlength="25">
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120"><span translate>国家和地区</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="country" class="form-control" ng-model="orderObj.country"
                            maxlength="100">
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120"><span translate>机型</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="model" class="form-control" ng-model="orderObj.model" maxlength="100">
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120"><span translate>备注</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="remark" class="form-control" ng-model="orderObj.remark"
                            maxlength="200">
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120"><span translate>是否直投订单</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left clearfix">
                        <input type="radio" class="m-r-sm pull-left" yb-radio yb-disabled="true"
                            ng-model="orderObj.isDirectCast" value="1" yb-radio-name="是">
                        <input type="radio" class="m-r-sm pull-left" yb-radio yb-disabled="true"
                            ng-model="orderObj.isDirectCast" value="0" yb-radio-name="否">
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120"><span translate>是否整改</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left clearfix">
                        <input type="radio" class="m-r-sm pull-left" yb-radio ng-model="orderObj.isImprove" value="1"
                            yb-radio-name="是">
                        <input type="radio" class="m-r-sm pull-left" yb-radio ng-model="orderObj.isImprove" value="0"
                            yb-radio-name="否">
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120"><span translate>订单金额</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.totalValue || 0}}
                    </label>
                </div>
            </form>
            <!-- wangcan：其他两个页面改到这里 -->
            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar font-0">
                    <div style="width: 150px;float:left;margin-top:5px;">
                        <input type="text" class="form-control" translate translate-attr-placeholder="零件编号"
                            ng-model="filterCondition.materialsNo">
                    </div>
                    <div style="width: 150px;float:left;margin-top:5px;margin-left:10px">
                        <input type="text" class="form-control" translate translate-attr-placeholder="采购组"
                            ng-model="filterCondition.purchaseGroup">
                    </div>
                    <div style="width: 200px;float:left;margin-top:5px;margin-left:10px">
                        <select name="typeId" class="form-control" ng-model="filterCondition.supplierCode"
                            ng-options="item.supplierSapCode as item.supplierName for item in orderObj.supplierList">
                            <option value="">请选择供货商</option>
                        </select>
                    </div>

                    <button type="button" style="margin-top: 5px;margin-left: 10px" class="btn btn-primary m-r-sm"
                        ng-click="filterDetail()">检索</button>
                    <button type="button" style="margin-top: 5px;margin-left: 5px" class="btn btn-primary m-r-sm"
                        ng-click="filterReset()">重置</button>
                    <button type="button" style="margin-top: 5px;margin-left: 5px" class="btn btn-primary m-r-sm"
                        ng-click="batchDelMateriel()">批量删除</button>
                </div>
            </div>
            <div class="main-area d-b-60" style="top:360px">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{materielPlanTableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="th-check text-center">
                                        <div yb-check-box yb-checked="markInfo.allCheckedMaterial"
                                            yb-click="selectAll(orderObj.materialsList, 'Material')"></div>
                                    </th>
                                    <th width="60" class="text-center">
                                        操作
                                    </th>
                                    <th ng-repeat="itemCol in materielPlanTableConfig.tableCol track by $index"
                                        ng-if="itemCol.type !== 'rowNo'&&!itemCol.hidden" width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="materielPlanTableConfig.targetWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.materialsList.length > 0">
                        <table class="table-fixed border-none" width="{{materielPlanTableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in orderObj.materialsList track by $index">
                                    <td width="40" class="text-center">
                                        <div yb-check-box yb-checked="item.isChecked"
                                            yb-click="selectSingle(item, orderObj.materialsList, 'Material')"></div>
                                    </td>
                                    <td width="60">
                                        <button type="button" class="btn btn-operate"
                                            ng-click="delMateriel(item, $index)">删除</button>
                                    </td>
                                    <td ng-repeat="itemCol in materielPlanTableConfig.tableCol track by $index"
                                        ng-if="itemCol.type !== 'rowNo'&&!itemCol.hidden" width="{{itemCol.width}}"
                                        title="{{item[itemCol.dataField]}}">
                                        <div class="spill-dots" ng-if="!itemCol.needInput && !itemCol.input"
                                            ng-class="{'danger-color': itemCol.needWarn}">
                                            {{item[itemCol.dataField]}}
                                        </div>
                                        <div ng-if="!!itemCol.input && itemCol.inputType === 'price' "
                                            class="td-edit pos-r">
                                            {{item[itemCol.dataField]}}
                                        </div>
                                        <div yb-form-clear class="td-edit" ng-model="item[itemCol.dataField]"
                                            select-obj="chosePriceScheme(item, $parent.$parent.$index)"
                                            clear-form="clearPriceScheme(item)" tips-name="价格方案"
                                            ng-if="!!itemCol.input && itemCol.inputType === 'func'"
                                            title="{{item[itemCol.dataField]}}"></div>

                                        <div ng-if="itemCol.needInput && itemCol.inputType === 'qty'"
                                            class="td-edit pos-r">
                                            <input type="text" class="form-control" ng-model="item[itemCol.dataField]"
                                                ng-change="countTotal(item)" yb-number-input max="99999.999"
                                                maxlength="9" disable-decimal="false" decimal-places="3"
                                                ng-class="{'error': item.qtyErr || (item.qtyFormatErr)}">
                                            <div class="pos-a tool-tips" ng-if="!!item.qtyErr">
                                                <i class="triangle"></i>
                                                <div class="msg">申请数量不能为空和0</div>
                                            </div>
                                            <div class="pos-a tool-tips" ng-if="!!item.qtyFormatErr">
                                                <i class="triangle"></i>
                                                <div class="msg">申请数量必须为{{item.minimumBuy}}的倍数</div>
                                            </div>
                                        </div>

                                        <div ng-if="itemCol.needInput && itemCol.inputType === 'netPrice'"
                                            class="td-edit pos-r">
                                            <input type="text" class="form-control" ng-model="item[itemCol.dataField]"
                                                ng-change="countNetPriceTotal(item)" yb-number-input max="99999.999"
                                                maxlength="9" disable-decimal="false" decimal-places="3">
                                        </div>

                                        <div ng-if="itemCol.input && itemCol.inputType === 'time'" class="td-edit pos-r"
                                            title="{{item[itemCol.dataField]}}">
                                            <input type="text" class="form-control date-picker cursor-pointer"
                                                ng-model="item[itemCol.dataField]" datepicker-popup="{{'yyyy-MM-dd'}}"
                                                ng-click="switchListDatePicker(item)" at-right="true"
                                                is-open="item.showDatePicker" close-text="关闭"
                                                ng-class="{'error': item.dateErr && !item[itemCol.dataField]}" readonly>
                                            <div class="pos-a tool-tips"
                                                ng-if="!!item.dateErr && !item[itemCol.dataField]">
                                                <i class="triangle"></i>
                                                <div class="msg">交货日期不能为空</div>
                                            </div>
                                        </div>

                                        <div ng-if="itemCol.needInput && itemCol.inputType === 'select'"
                                            class="td-edit pos-r">
                                            <select name="typeId" class="form-control" ng-model="item.supplierCode"
                                                ng-options="item.supplierSapCode as item.supplierName for item in item.purchaseInfoVOList">
                                                <option value="">请选择</option>
                                            </select>
                                        </div>

                                        <div ng-if="itemCol.needInput && itemCol.inputType === 'remark'"
                                            class="td-edit pos-r">
                                            <input type="text" class="form-control" ng-model="item[itemCol.dataField]">
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.materialsList.length === 0">暂时没有数据
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm"
                    ng-click="saveData('save', orderForm.$valid, 1)">保存</button>
                <button type="button" class="btn btn-primary m-r-sm"
                    ng-click="saveData('submit', orderForm.$valid, 1)">提交</button>
                <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>
            </div>
        </div>
        <div tab heading="同步" active="activeFlag[6]" ng-if="activeFlag[6]">
            <div class="main-area d-t-35 d-b-60">
                <form name="sapAddForm" class="main-wrap form-horizontal single-col p-t clearfix" novalidate>
                    <div class="form-group m-b-sm">
                        <label class="col-xs-2 control-label"><i>*</i>采购单号：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input name="sapBillNo" class="form-control" ng-model="sapAddObj.sapBillNo" required
                                yb-focus />
                        </div>
                        <div class="col-xs-4 msg-block"
                            ng-show="sapAddForm.sapBillNo.$dirty || (sapAddForm.sapBillNo.$invalid && sapAddSubmitted)">
                            <div class="error-msg"
                                ng-if="sapAddForm.sapBillNo.$error.required && !sapAddForm.sapBillNo.focused">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group save-bar m-b-none">
                        <label class="col-xs-2 control-label"></label>
                        <div class="col-xs-5 wrapper-none">
                            <button type="button" class="btn btn-primary m-r-sm"
                                ng-click="saveSapAddData(sapAddForm.$valid)">
                                保存
                            </button>
                            <button type="button" class="btn btn-default" ng-click="changeTab(0)">取消</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
        <div tab heading="选择直投采购订单" active="activeFlag[7]" ng-if="activeFlag[7] || activeFlag[8]">
            <div class="row wrapper-y-sm">
                <div class="operate-bar col-xs-4 font-0">
                </div>
                <div class="search-bar wrapper-none col-xs-8">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="directPurchasePlan.search()"
                            title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" title="配置表格列"
                            ng-click="directPurchasePlan.switchToolbar('ColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                    </div>
                    <button class="btn-advance pull-right m-l-xs"
                        ng-click="directPurchasePlan.switchToolbar('AdvanceSearch')">高级搜索</button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" placeholder="采购订单号"
                            ng-model="directPurchasePlan.condition.billNo">
                        <span class="input-group-addon cursor-pointer" ng-click="directPurchasePlan.search(1)">搜索</span>
                    </div>
                </div>
            </div>
            <div yb-advance-search show-toolbar="directPurchasePlan.toolbarConfig.showAdvanceSearch"
                search-data="directPurchasePlan.search(1)" reset-data="directPurchasePlan.reset()">
                <div class="advance-search m-t-sm">
                    <div class="form-group clearfix">
                        <label class="control-label">采购订单号：</label>
                        <input type="text" class="form-control" ng-model="directPurchasePlan.condition.billNo">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">申请单位：</label>
                        <input type="text" class="form-control" ng-model="directPurchasePlan.condition.purchaseOrgName">
                    </div>
                </div>
            </div>
            <div yb-col-config show-toolbar="directPurchasePlan.toolbarConfig.showColConfig"
                ng-model="directPurchasePlan.tableConfig" col-fixed="true"
                set-tb-style="directPurchasePlan.setFixedWidth()"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{directPurchasePlan.tableConfig.fixedWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in directPurchasePlan.tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}"
                                        ng-click="directPurchasePlan.toSort(directPurchasePlan.tableConfig.tableCol, $index)"
                                        ng-show="!!itemCol.isShow && !!itemCol.isFixed && itemCol.type !== 'operate'">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="directPurchasePlan.tableConfig.fixedWidth"
                                            fixed-width="directPurchasePlan.tbStyle.sellFixedWidth"></div>
                                    </th>
                                    <th width="120" class="border-r-none">
                                        操作
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="directPurchasePlan.tbStyle.sellFixedWidth">
                        <table class="table-fixed border-none" width="{{directPurchasePlan.tableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in directPurchasePlan.tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}"
                                        ng-click="directPurchasePlan.toSort(directPurchasePlan.tableConfig.tableCol, $index)"
                                        ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="directPurchasePlan.tableConfig.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y" ng-show="directPurchasePlan.dataList.length > 0">
                        <table class="table-fixed border-none" width="{{directPurchasePlan.tableConfig.fixedWidth}}">
                            <tbody>
                                <tr ng-repeat="item in directPurchasePlan.dataList track by $index"
                                    ng-click="directPurchasePlan.selectRow($index)"
                                    ng-class="{'row-selected': $index === directPurchasePlan.markInfo.cueRow}">
                                    <td class="border-l-none spill-dots"
                                        ng-repeat="itemCol in directPurchasePlan.tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}"
                                        ng-show="!!itemCol.isShow && !!itemCol.isFixed && itemCol.type !== 'operate'"
                                        title="{{item[itemCol.dataField]}}">
                                        {{item[itemCol.dataField]}}
                                    </td>
                                    <td width="200" class="border-l-none font-0">
                                        <button class="btn btn-operate"
                                            ng-click="createDirectPurchaseOrder(item)">新增直投采购订单</button>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="directPurchasePlan.dataList.length > 0"
                        ng-style="directPurchasePlan.tbStyle.sellFixedWidth">
                        <table class="table-fixed border-none" width="{{directPurchasePlan.tableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in directPurchasePlan.dataList track by $index"
                                    ng-click="directPurchasePlan.selectRow($index)"
                                    ng-class="{'row-selected': $index === directPurchasePlan.markInfo.cueRow}">
                                    <td class="spill-dots"
                                        ng-repeat="itemCol in directPurchasePlan.tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        {{item[itemCol.dataField]}}
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="directPurchasePlan.dataList.length === 0">
                        暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-page-info ng-model="directPurchasePlan.pageInfo" yb-refresh="directPurchasePlan.search()"></div>
            </div>
        </div>
        <div tab heading="直投新增采购订单" active="activeFlag[8]" ng-if="activeFlag[8]">
            <form name="orderForm" class="m-t-sm form-horizontal form-up-tb border-b clearfix" novalidate>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120">申请单位：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.purchaseOrgName}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120">供货商：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="orderObj.supplierOrgName" select-obj="selectDirectSupplier()"
                            clear-form="clearSupplier()" tips-name="供货商" form-require="true"></div>
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120">送达方：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.deliveryOrgName}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120">申请时间：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.createDate|YbDate:"yyyy-MM-dd HH:mm:ss"}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm" ng-if="tabFlag.type === 2">
                    <label class="col-xs-4 control-label max-w-120">接收单位：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.supplierOrgName || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm" ng-if="tabFlag.type === 2">
                    <label class="col-xs-4 control-label max-w-120">出票方：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.drawerOrgName || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm" ng-if="isZHJCH">
                    <label class="col-xs-4 control-label max-w-120"><i>*</i>订单类型：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div dictionary-selector ng-model="orderObj.purchaseOrdTypeDesc" sel-key="CGDDLX"
                            sel-code="orderObj.purchaseOrdType">
                            <input type="text" name="purchaseOrdType" class="form-control light-bg"
                                ng-model="orderObj.purchaseOrdTypeDesc" placeholder="请选择" required readonly yb-focus>
                        </div>
                        <div class="msg-block"
                            ng-show="orderForm.purchaseOrdType.$dirty || (orderForm.purchaseOrdType.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.purchaseOrdType.$error.required && !orderForm.purchaseOrdType.focused">
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120"><i>*</i>采购组：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="orderObj.purchaseGroup" select-obj="selectPurchaseGroup()"
                            clear-form="clearPurchaseGroup()" tips-name="采购组" form-require="true"></div>
                        <div class="msg-block" ng-if="!orderObj.purchaseGroup && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                请选择采购组
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm" ng-if="!orderObj.isPlatCompany">
                    <label class="col-xs-4 control-label max-w-120">调度员：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="dispatcherName" class="form-control light-bg"
                            ng-model="orderObj.dispatcherName" ng-click="selectDispatch()" yb-focus readonly
                            placeholder="请选择">
                    </div>
                </div>

                <div class="form-group col-xs-4 m-b-sm" ng-if="orderObj.isPlatCompany">
                    <label class="col-xs-4 control-label max-w-120"><i>*</i>调度员：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="dispatcherName" class="form-control light-bg"
                            ng-model="orderObj.dispatcherName" ng-click="selectDispatch()" required yb-focus
                            placeholder="请选择">

                        <div class="msg-block"
                            ng-if="orderForm.dispatcherName.$dirty || (orderForm.dispatcherName.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.dispatcherName.$error.required && !orderForm.dispatcherName.focused">
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                        </div>
                    </div>
                </div>

                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120">采购方式：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.purchaseTypeChildId ? orderObj.typeDesc + "-" + orderObj.purchaseTypeChildName : orderObj.typeDesc}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120">发货方式：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.shippingMethod || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120">收货人：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.receiverName || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120">手机号：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.receiverTel || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120">收货地址：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.receiverAddress || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120">传真：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.receiverFax || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120">国家和地区：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.country || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120">机型：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.model || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120">备注：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="remark" class="form-control" ng-model="orderObj.remark"
                            maxlength="200">
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120">订单金额：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.totalValue || 0}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120">是否直投订单：</label>
                    <label class="col-xs-8 control-label p-l-n text-left clearfix">
                        <input type="radio" class="m-r-sm pull-left" yb-radio
                            yb-disabled="!!orderObj.billNo || orderObj.materialsList.length > 0"
                            ng-model="orderObj.isDirectCast" value="1" yb-radio-name="是">
                        <input type="radio" class="m-r-sm pull-left" yb-radio
                            yb-disabled="!!orderObj.billNo || orderObj.materialsList.length > 0"
                            ng-model="orderObj.isDirectCast" value="0" yb-radio-name="否">
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120">是否整改：</label>
                    <label class="col-xs-8 control-label p-l-n text-left clearfix">
                        <input type="radio" class="m-r-sm pull-left" yb-radio ng-model="orderObj.isImprove" value="1"
                            yb-radio-name="是">
                        <input type="radio" class="m-r-sm pull-left" yb-radio ng-model="orderObj.isImprove" value="0"
                            yb-radio-name="否">
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-120">直投达标金额：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.directLimit || 0}}
                    </label>
                </div>
            </form>
            <div class="main-area d-b-60" style="top:280px">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{directMaterielTableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in directMaterielTableConfig.tableCol track by $index"
                                        ng-if="itemCol.type !== 'rowNo'&&!itemCol.hidden" width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="directMaterielTableConfig.targetWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.materialsList.length > 0">
                        <table class="table-fixed border-none" width="{{directMaterielTableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in orderObj.materialsList track by $index">
                                    <td ng-repeat="itemCol in directMaterielTableConfig.tableCol track by $index"
                                        ng-if="itemCol.type !== 'rowNo'&&!itemCol.hidden" width="{{itemCol.width}}"
                                        title="{{item[itemCol.dataField]}}">
                                        <div class="spill-dots" ng-if="!itemCol.needInput && !itemCol.input"
                                            ng-class="{'danger-color': itemCol.needWarn}">
                                            {{item[itemCol.dataField]}}
                                        </div>
                                        <div yb-form-clear class="td-edit" ng-model="item[itemCol.dataField]"
                                            select-obj="chosePriceScheme(item, $parent.$parent.$index)"
                                            clear-form="clearPriceScheme(item)" tips-name="价格方案"
                                            ng-if="!!itemCol.input && itemCol.inputType === 'func'"
                                            title="{{item[itemCol.dataField]}}"></div>

                                        <div ng-if="itemCol.needInput && itemCol.inputType === 'qty'"
                                            class="td-edit pos-r">
                                            <input type="text" class="form-control" ng-model="item[itemCol.dataField]"
                                                ng-change="countTotal(item)" yb-number-input max="99999.999"
                                                maxlength="9" disable-decimal="false" decimal-places="3"
                                                ng-class="{'error': item.qtyErr || (item.qtyFormatErr)}">
                                            <div class="pos-a tool-tips" ng-if="!!item.qtyErr">
                                                <i class="triangle"></i>
                                                <div class="msg">申请数量不能为空和0</div>
                                            </div>
                                            <div class="pos-a tool-tips" ng-if="!!item.qtyFormatErr">
                                                <i class="triangle"></i>
                                                <div class="msg">申请数量必须为{{item.minimumBuy}}的倍数</div>
                                            </div>
                                        </div>

                                        <div ng-if="itemCol.needInput && itemCol.inputType === 'netPrice'&&!itemCol.hidden"
                                            class="td-edit pos-r">
                                            <input type="text" class="form-control" ng-model="item[itemCol.dataField]"
                                                ng-change="countNetPriceTotal(item)" yb-number-input max="99999.999"
                                                maxlength="9" disable-decimal="false" decimal-places="3">
                                        </div>
                                        <div ng-if="itemCol.input && itemCol.inputType === 'time'" class="td-edit pos-r"
                                            title="{{item[itemCol.dataField]}}">
                                            <input type="text" class="form-control date-picker cursor-pointer"
                                                ng-model="item[itemCol.dataField]" datepicker-popup="{{'yyyy-MM-dd'}}"
                                                ng-click="switchListDatePicker(item)" at-right="true"
                                                is-open="item.showDatePicker" close-text="关闭"
                                                ng-class="{'error': item.dateErr && !item[itemCol.dataField]}" readonly>
                                            <div class="pos-a tool-tips"
                                                ng-if="!!item.dateErr && !item[itemCol.dataField]">
                                                <i class="triangle"></i>
                                                <div class="msg">交货日期不能为空</div>
                                            </div>
                                        </div>
                                        <div ng-if="itemCol.needInput && itemCol.inputType === 'settlementPrice'&&!itemCol.hidden"
                                            class="td-edit pos-r">
                                            <input type="text" class="form-control" ng-model="item[itemCol.dataField]"
                                                ng-change="countPriceTotal(item)" yb-number-input max="99999.999"
                                                maxlength="9" disable-decimal="false" decimal-places="3">
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.materialsList.length === 0">暂时没有数据
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm"
                    ng-click="saveData('submit', orderForm.$valid)">提交</button>
                <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>
            </div>
        </div>
        <div tab heading="生成条码" active="activeFlag[9]" ng-if="activeFlag[9]">
            <div class="pos-a-full shuttle-box left d-b-15" style="right: 50%;top:35px;">
                <span class="pos-r danger-color" style="top: 15px;" translate>* 请选择条码生成未完成的零件</span>
                <div class="row wrapper-y-sm">
                    <div class="operate-bar col-xs-4 font-0">
                    </div>
                </div>
                <div yb-table-fixed class="table-fixed-wrap has-head ">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{barCodePage.tableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th class="th-check" width="40"></th>
                                    <th ng-repeat="itemCol in barCodePage.tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="barCodePage.tableConfig.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="barCodePage.dataList.length > 0">
                        <table class="table-fixed border-none" width="{{barCodePage.tableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in barCodePage.dataList track by $index"
                                    ng-class="{'row-selected': $index === barCodePage.markInfo.cueRow}"
                                    ng-click="barCodePage.selectRow($index)">
                                    <td width="40">{{$index+1}}</td>
                                    <td class="spill-dots"
                                        ng-repeat="itemCol in barCodePage.tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">
                                        {{item[itemCol.dataField]}}
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="barCodePage.dataList.length === 0">无零件数据</div>
                </div>
            </div>
            <div class="pos-a-full shuttle-box right has-foot" style="left:50%;top:35px">
                <div class="box-head clearfix">
                    <span class="font-14" translate>
                        条码参数
                    </span>
                </div>
                <div class="pos-a-full box-body has-head has-foot border-t">
                    <form name="form" class="main-wrap form-horizontal p-t clearfix" novalidate>
                        <div class="form-group col-xs-6">
                            <label class="col-xs-4 control-label"><span translate>图号</span>：</label>
                            <div class="col-xs-6 wrapper-none">
                                <input type="text" name="orawyd" class="form-control"
                                    ng-model="barCodePage.detailInfo.orawyd" maxlength="20">
                            </div>
                        </div>
                        <div class="form-group col-xs-6">
                            <label class="col-xs-4 control-label"><span translate>条码描述</span>：</label>
                            <div class="col-xs-6 wrapper-none">
                                <input type="text" name="barcodeDesc" class="form-control"
                                    ng-model="barCodePage.detailInfo.barcodeDesc" maxlength="50">
                            </div>
                        </div>
                        <div class="form-group col-xs-6">
                            <label class="col-xs-4 control-label"><span translate>规格描述</span>：</label>
                            <div class="col-xs-6 wrapper-none">
                                <input type="text" name="model" class="form-control"
                                    ng-model="barCodePage.detailInfo.model" maxlength="30">
                            </div>
                        </div>
                        <div class="form-group col-xs-6">
                            <label class="col-xs-4 control-label"><i>*</i><span translate>总数量</span>：</label>
                            <div class="col-xs-6 wrapper-none">
                                <input type="text" name="totalQty" class="form-control" yb-number-input max="99999.999"
                                    maxlength="9" disable-decimal="false" decimal-places="3"
                                    ng-model="barCodePage.detailInfo.totalQty" ng-change="barCodePage.countPack()">
                            </div>
                        </div>
                        <div class="form-group col-xs-6 m-b-xs">
                            <label class="col-xs-4 control-label"><i>*</i><span translate>包装数量</span>：</label>
                            <div class="col-xs-6 wrapper-none">
                                <input type="text" name="packNum" class="form-control"
                                    ng-model="barCodePage.detailInfo.packNum" max="999" maxlength="3" yb-number-input
                                    ng-change="barCodePage.setPackNum()">
                            </div>
                        </div>
                        <div class="pos-a-full border-t p-t-sm" style="top:160px; bottom: 10px;overflow: auto">
                            <div class="form-group" ng-repeat="item in barCodePage.packList track by $index">
                                <label class="col-xs-2 control-label"><span translate>每包数量</span>：</label>
                                <div class="col-xs-4 wrapper-none">
                                    <input type="text" name="vinid" class="form-control" yb-number-input
                                        disable-decimal="false" decimal-places="3" ng-model="item.currentQty">
                                </div>

                                <label class="col-xs-2 control-label">VIN码{{$index+1}}：</label>
                                <div class="col-xs-4 wrapper-none">
                                    <input type="text" name="vinid" class="form-control" ng-model="item.vinid"
                                        maxlength="25">
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="bottom-area btn-bar text-center border-t clearfix">
                    <button type="button" class="btn btn-default m-r-sm" ng-click="changeTab(0)" translate>返回</button>
                    <button type="button" class="btn btn-primary" ng-click="createMaterialBarcode()" translate>生成条码</button>
                </div>
            </div>
        </div>
        <div tab heading="编辑采购申请" active="activeFlag[10]" ng-if="activeFlag[10]">
            <form name="orderForm" class="m-t-sm form-horizontal form-up-tb clearfix" novalidate>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>采购单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.billNo || '-'}}">
                        {{orderObj.billNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>采购计划单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.buyPlanOrder || '-'}}">
                        {{orderObj.buyPlanOrder || "-"}}
                    </div>
                </div>

                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>接收单位</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.supplierOrgName || '-'}}">
                        {{orderObj.supplierOrgName||'-'}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>出票方</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.drawerOrgName || '-'}}">
                        {{orderObj.drawerOrgName||'-'}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>采购组</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.purchaseGroup || '-'}}">
                        {{orderObj.purchaseGroup||'-'}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>申请时间</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{(orderObj.createDate|YbDate) || '-'}}">
                        {{(orderObj.createDate|YbDate:"yyyy-MM-dd HH:mm:ss") || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>申请单位</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.purchaseOrgName || '-'}}">
                        {{orderObj.purchaseOrgName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>调度员</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.dispatcherName || '-'}}">
                        {{orderObj.dispatcherName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>采购方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{orderObj.purchaseTypeChildId ? orderObj.typeDesc + '-' + orderObj.purchaseTypeChildName : orderObj.typeDesc}}">
                        {{orderObj.purchaseTypeChildId ? orderObj.typeDesc + "-" + orderObj.purchaseTypeChildName : orderObj.typeDesc}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>发布方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{orderObj.sendTypeChildId ? orderObj.shippingMethod + '-' + orderObj.sendTypeChildName : orderObj.shippingMethod}}">
                        {{orderObj.sendTypeChildId ? orderObj.shippingMethod + "-" + orderObj.sendTypeChildName : orderObj.shippingMethod}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>收货人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.receiverName || '-'}}">
                        {{orderObj.receiverName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>联系方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.receiverTel || '-'}}">
                        {{orderObj.receiverTel || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>传真</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.receiverFax || '-'}}">
                        {{orderObj.receiverFax || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>收货地址</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.receiverAddress || '-'}}">
                        {{orderObj.receiverAddress || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>状态</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.statusDesc || '-'}}">
                        {{orderObj.statusDesc || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>审核人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.auditName || '-'}}">
                        {{orderObj.auditName || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>审核时间</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{(orderObj.auditDate|YbDate) || '-'}}">
                        {{(orderObj.auditDate|YbDate:"yyyy-MM-dd HH:mm:ss") || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>审核意见</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.auditMessage || '-'}}">
                        {{orderObj.auditMessage || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>国家和地区</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.country || '-'}}">
                        {{orderObj.country || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>机型</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.model || '-'}}">
                        {{orderObj.model || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>备注</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.remark || '-'}}">
                        {{orderObj.remark || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>库区编码</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.sapInArea || '-'}}">
                        {{orderObj.sapInArea || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>采购凭证</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.voucherNo || '-'}}">
                        {{orderObj.voucherNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>同步状态</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.sapStatusShow || '-'}}">
                        {{orderObj.sapStatusShow || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>是否直投订单</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{(orderObj.isDirectCast|TrueOrFalse) || '-'}}">
                        {{(orderObj.isDirectCast|TrueOrFalse) || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>是否整改</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{(orderObj.isImprove|TrueOrFalse) || '-'}}">
                        {{(orderObj.isImprove|TrueOrFalse) || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm" ng-if="orderObj.isDirectCast === 1">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>直投达标金额</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.directLimit || '-'}}">
                        {{orderObj.directLimit || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm" ng-if="orderObj.isDirectCast === 1">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>送达方</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.deliveryOrgName || '-'}}">
                        {{orderObj.deliveryOrgName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm" ng-if="orderObj.isDirectCast === 1">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>供货商</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.soldOrgName || '-'}}">
                        {{orderObj.soldOrgName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm" ng-if="orderObj.isDirectCast === 1">
                    <label class="col-xs-4 m-b-n text-right max-w-120"><span translate>来源单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.directSourceOrder || '-'}}">
                        {{orderObj.directSourceOrder || "-"}}
                    </div>
                </div>
            </form>
            <div class="panel-bar clearfix">
                <div class="pull-left" translate>
                    <i></i>零件信息
                </div>
            </div>
            <div class="main-area d-b-60"
                ng-style="{'top':(!!orderObj.billNo || orderObj.isDirectCast === 1 || isZHJCH)?'285px':'245px'}">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{materielTableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="th-check text-center">
                                        <div yb-check-box yb-checked="markInfo.allCheckedMaterial"
                                            yb-click="selectAll(orderObj.materialsList, 'Material')"></div>
                                    </th>
                                    <th width="60" class="text-center">
                                        <span translate>操作</span>
                                    </th>
                                    <th ng-repeat="itemCol in materielTableConfig.tableCol track by $index"
                                        ng-if="itemCol.type !== 'rowNo'&&!itemCol.hidden" width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="materielTableConfig.targetWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.materialsList.length > 0">
                        <table class="table-fixed border-none" width="{{materielTableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in orderObj.materialsList track by $index">
                                    <td width="40" class="text-center">
                                        <div yb-check-box yb-disabled="item.sendQty != 0" yb-checked="item.isChecked"
                                            yb-click="selectSingle(item, orderObj.materialsList, 'Material')"></div>
                                    </td>
                                    <td width="60">
                                        <button type="button" class="btn btn-operate" ng-disabled="item.sendQty != 0"
                                            ng-click="delMateriel(item, $index)"><span translate>删除</span></button>
                                    </td>
                                    <td ng-repeat="itemCol in materielTableConfig.tableCol track by $index"
                                        ng-if="itemCol.type !== 'rowNo'&&!itemCol.hidden" width="{{itemCol.width}}"
                                        title="{{item[itemCol.dataField]}}">
                                        <div class="spill-dots" ng-if="!itemCol.needInput && !itemCol.input"
                                            ng-class="{'danger-color': itemCol.needWarn}">
                                            {{item[itemCol.dataField]}}
                                        </div>
                                        <div ng-if="!!itemCol.input && itemCol.inputType === 'price' "
                                            class="td-edit pos-r">
                                            {{item[itemCol.dataField]}}

                                        </div>
                                        <div yb-form-clear class="td-edit" ng-model="item[itemCol.dataField]"
                                            select-obj="chosePriceScheme(item, $parent.$parent.$index)"
                                            clear-form="clearPriceScheme(item)" tips-name="价格方案"
                                            ng-if="!!itemCol.input && itemCol.inputType === 'func'"
                                            title="{{item[itemCol.dataField]}}" translate></div>

                                        <div ng-if="itemCol.needInput && itemCol.inputType === 'qty'"
                                            class="td-edit pos-r">
                                            <input type="text" class="form-control" ng-model="item[itemCol.dataField]"
                                                ng-change="countTotalEdit(item)" yb-number-input max="99999.999"
                                                maxlength="9" disable-decimal="false" decimal-places="3"
                                                ng-class="{'error': item.qtyErr || item.qtyEditErr || item.qtyMaxErr || (item.qtyFormatErr)}">
                                            <div class="pos-a tool-tips" ng-if="!!item.qtyErr">
                                                <i class="triangle"></i>
                                                <div class="msg" translate>申请数量不能为空和0</div>
                                            </div>
                                            <div class="pos-a tool-tips" ng-if="!!item.qtyEditErr">
                                                <i class="triangle"></i>
                                                <div class="msg" translate>申请数量不能小于已建入库单数量</div>
                                            </div>
                                            <div class="pos-a tool-tips" ng-if="!!item.qtyMaxErr">
                                                <i class="triangle"></i>
                                                <div class="msg" translate>申请数量不能大于原数量</div>
                                            </div>
                                            <div class="pos-a tool-tips" ng-if="!!item.qtyFormatErr">
                                                <i class="triangle"></i>
                                                <div class="msg">申请数量必须为{{item.minimumBuy}}的倍数</div>
                                            </div>
                                        </div>

                                        <div ng-if="itemCol.needInput && itemCol.inputType === 'netPrice'&&!itemCol.hidden"
                                            class="td-edit pos-r">
                                            <input type="text" class="form-control" ng-model="item[itemCol.dataField]"
                                                ng-change="countNetPriceTotal(item)" yb-number-input max="99999.999"
                                                maxlength="9" disable-decimal="false" decimal-places="3">
                                        </div>

                                        <div ng-if="itemCol.input && itemCol.inputType === 'time'" class="td-edit pos-r"
                                            title="{{item[itemCol.dataField]}}">
                                            <input type="text" class="form-control date-picker cursor-pointer"
                                                ng-model="item[itemCol.dataField]" datepicker-popup="{{'yyyy-MM-dd'}}"
                                                ng-click="switchListDatePicker(item)" at-right="true"
                                                is-open="item.showDatePicker" close-text="关闭"
                                                ng-class="{'error': item.dateErr && !item[itemCol.dataField]}" readonly>
                                            <div class="pos-a tool-tips"
                                                ng-if="!!item.dateErr && !item[itemCol.dataField]">
                                                <i class="triangle"></i>
                                                <div class="msg" translate>交货日期不能为空</div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.materialsList.length === 0">暂时没有数据
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm"
                    ng-click="saveData('submit', orderForm.$valid)"><span translate>提交</span></button>
                <button type="button" class="btn btn-default" ng-click="cancel()"><span translate>取消</span></button>
            </div>
        </div>
        <div tab heading="选择采购计划" active="activeFlag[11]" ng-if="activeFlag[11]">
            <div class="row wrapper-y-sm">
                <div class="operate-bar col-xs-4 font-0">
                </div>
                <div class="search-bar wrapper-none col-xs-8">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="agentPlan.search()"
                            title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" title="配置表格列"
                            ng-click="agentPlan.switchToolbar('ColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                    </div>
                    <button class="btn-advance pull-right m-l-xs"
                        ng-click="agentPlan.switchToolbar('AdvanceSearch')">高级搜索</button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" placeholder="采购计划单号"
                            ng-model="agentPlan.condition.planNo">
                        <span class="input-group-addon cursor-pointer" ng-click="agentPlan.search(1)">搜索</span>
                    </div>
                </div>
            </div>
            <div yb-advance-search show-toolbar="agentPlan.toolbarConfig.showAdvanceSearch"
                search-data="agentPlan.search(1)" reset-data="agentPlan.reset()">
                <div class="advance-search m-t-sm">
                    <div class="form-group clearfix">
                        <label class="control-label">采购计划单号：</label>
                        <input type="text" class="form-control" ng-model="agentPlan.condition.planNo">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">制单人：</label>
                        <input type="text" class="form-control" ng-model="agentPlan.condition.createName">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">采购类型：</label>
                        <select ng-model="agentPlan.condition.typeId" class="form-control"
                            ng-options="item.code as item.name for item in purchaseLevelList">
                            <option value="" translate>请选择</option>
                        </select>
                    </div>
                </div>
            </div>
            <div yb-col-config show-toolbar="agentPlan.toolbarConfig.showColConfig" ng-model="agentPlan.tableConfig"
                col-fixed="true" set-tb-style="agentPlan.setFixedWidth()"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{agentPlan.tableConfig.fixedWidth}}">
                            <thead>
                                <tr>
                                    <th width="150" class="border-r-none">
                                        操作
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="{'left':  agentPlan.tableConfig.fixedWidth + 'px'}">
                        <table class="table-fixed border-none" width="{{agentPlan.tableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in agentPlan.tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}"
                                        ng-click="agentPlan.toSort(agentPlan.tableConfig.tableCol, $index)"
                                        ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="agentPlan.tableConfig.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y" ng-show="agentPlan.dataList.length > 0">
                        <table class="table-fixed border-none" width="{{agentPlan.tableConfig.fixedWidth}}">
                            <tbody>
                                <tr ng-repeat="item in agentPlan.dataList track by $index">
                                    <td width="150" class="border-l-none font-0">
                                        <button class="btn btn-operate"
                                            ng-click="agentMakeIntention(item)">新增采购订单</button>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="agentPlan.dataList.length > 0"
                        ng-style="{'left':  agentPlan.tableConfig.fixedWidth + 'px'}">
                        <table class="table-fixed border-none" width="{{agentPlan.tableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in agentPlan.dataList track by $index"
                                    ng-click="agentPlan.selectRow($index)"
                                    ng-class="{'row-selected': $index === markInfo.cueRow}">
                                    <td class="spill-dots"
                                        ng-repeat="itemCol in agentPlan.tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        {{item[itemCol.dataField]}}
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="agentPlan.dataList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-page-info ng-model="agentPlan.pageInfo" yb-refresh="agentPlan.search()"></div>
            </div>
        </div>
    </div>
</div>